import Http from "../../utils/HttpUtil";
import URL from "../URL";
export default{
    //派优品优惠券list
    async  ShopFlySuperiorShopLsit(page=1){
        let url=URL.GetURL(URL.ShopFlySuperiorShopLsit);
        return await(Http.Get(url+`?page=${page}`))
        .then(response=>{
            return(response);
        },reject=>{
            return Promise.reject(reject);
        });
    },

    //获取优惠券详情
    async  ShopFlySuperiorShopDetails(flySuperiorId){
        let url=URL.GetURL(URL.ShopFlySuperiorShopDetails);
        return await(Http.Get(url+`?flySuperiorId=${flySuperiorId}`))
        .then(response=>{
            return(response);
        },reject=>{
            return Promise.reject(reject);
        });
    },
    
}